]> dgit.raspbian.org Git - gnome-shell.git/commit
iconGrid: Change IconGrid.addItem() to take an object instead of an actor
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 29 Aug 2013 21:25:13 +0000 (23:25 +0200)
committerCarlos Soriano <carlos.soriano89@gmail.com>
Mon, 2 Sep 2013 18:36:39 +0000 (20:36 +0200)
commit792b963bda8c44023c0590c42c08ec0bad1a4bda
treeb95e1fedcf14ff93ac012dbae7c50160975240e6
parent9a8bf3b88132d2a1105594a983ddde8425c8aa01
iconGrid: Change IconGrid.addItem() to take an object instead of an actor

IconGrid has never really been a general purpose container, but has
always been used in conjunction with BaseIcon. IconGrid will soon
gain the ability to adjust the item size dynamically to adapt to the
available space, which will require that we can make some more
assumptions about the items added to the grid (namely: we need
access to BaseIcon's setIconSize() method).
So change addItem() to take an object instead, which should have
an actor and a (BaseIcon) icon property.

Based on a patch by Carlos Soriano.

https://bugzilla.gnome.org/show_bug.cgi?id=706081
js/ui/appDisplay.js
js/ui/iconGrid.js
js/ui/searchDisplay.js
js/ui/wanda.js